package com.kanqiubao.kq.activity.user;

import android.os.Bundle;

import com.kanqiubao.kq.R;
import com.kanqiubao.kq.activity.BaseActivity;
import com.kanqiubao.kq.adapter.user.UserQpListAdapter;
import com.kanqiubao.kq.bean.main.MainOneListBean;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

/**
 * 我去球票
 */
public class UserQpListActivity extends BaseActivity<MainOneListBean> {
    UserQpListAdapter mUserQpListAdapter;
    RecyclerView mRecyclerView;

    @Override
    protected void onActivityCreate(Bundle savedInstanceState) {
        mRecyclerView = findView(R.id.live_fragment_root_id);
        mUserQpListAdapter = new UserQpListAdapter();
        mRecyclerView.setAdapter(mUserQpListAdapter);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
        List<MainOneListBean> item = new ArrayList<>();
        item.add(new MainOneListBean(MainOneListBean.GROUP));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.GROUP));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.GROUP));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.GROUP));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        item.add(new MainOneListBean(MainOneListBean.ITEM));
        mUserQpListAdapter.addData(item);
    }

    @Override
    protected int getActivitylayout() {
        return R.layout.user_qp_detail_layout;
    }

    @Override
    protected String getTitleText() {
        return "球票详细";
    }
}
